let path = require("path");

let str = "http://www.baidu.com/hello/index.html?id=12&name=wang#1234789098";

console.log(path.join("d1","d2","d3"));
console.log(path.resolve("../parse.js","d2"));
console.log(path.extname("1.jpg"));
console.log(path.dirname(str));